#ifndef __IMAGEBASE_H__
#define __IMAGEBASE_H__

#include <iostream>
#include <stdio.h>
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
using namespace std;
using namespace cv;

class ImageBase {


public:
	ImageBase();
	ImageBase(unsigned int width,unsigned int height);
	~ImageBase();


	// 获取一帧图像
	virtual int getImage(Mat &image) = 0;
	// 打开设备 返回0：成功； -1：失败
	virtual int openDevice() = 0;
	// 关闭设备 返回0：成功； -1：失败
	virtual int closeDevice() = 0;



private:
	// 图像的宽
	unsigned int width;
	// 图像的高
	unsigned int height;



};



#endif



